<!DOCTYPE html>
<!--suppress ALL -->
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include/head::commonHeaderCustomList('订单操作日志',~{::style})">
    <style type="text/css">
    </style>
</head>
<body>

<div id="content" class="col-lg-12 col-sm-12" style="padding: 5px;">
    <div class="row">
        <div class="box col-md-12" style="margin-top: 5px;">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>
                        <i class="glyphicon glyphicon-user"></i>订单操作日志列表
                    </h2>
                </div>
                <div class="box-content">
                    <form class="form-inline form-search" role="form" method="post" action="/order/log/page/list/">
                        <div class="form-group" data-chosenWidth="true" style="margin-bottom: 5px;">
                            <select name="pageSize" class="form-control input-sm" id="pagesize">
                                <option value="10">10条/页</option>
                                <option value="25">25条/页</option>
                                <option value="50">50条/页</option>
                            </select>
                            <div class="input-group input-group-sm">
                                <input type="search" name="search" id="search" th:value="${search}" class="form-control input-sm" placeholder="学员登录名..." style="width:200px;"/>
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="submit"> 查 询 </button>
                                </span>
                            </div>
                        </div>
                    </form>
                    <table class="table table-striped table-bordered table-hover footable" data-show-toggle="false">
                        <thead>
                        <tr>
                            <th class="text-center">#</th>
                            <th class="text-center">学员</th>
                            <th class="text-center">操作人</th>
                            <th class="text-center">操作时间</th>
                            <th class="text-center">操作类型</th>
                            <th class="text-center">描述</th>
                            <th data-breakpoints="all" data-title="订单编号">订单编号</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="item,itemStat:${pageInfo.list}">
                            <td class="text-center" style="width: 6%;" th:text="${itemStat.index+1}">1</td>
                            <td class="text-center" style="width: 6%;" th:text="${item.studentName}">学员</td>
                            <td class="text-center" style="width: 6%;" th:text="${item.recorder}">操作人</td>
                            <td class="text-center" style="width: 12%;" th:text="${#dates.format(item.recordTime, 'yyyy-MM-dd HH:mm:ss')}">操作时间</td>
                            <td class="text-center" style="width: 8%;" th:switch="${item.state}">
                                <span class="label-success label" th:case="1">添加订单</span>
                                <span class="label-danger label" th:case="2">审核不通过</span>
                                <span class="label-success label" th:case="3">审核通过</span>
                                <span class="label-warning label" th:case="4">修改每日课时</span>
                                <span class="label-warning label" th:case="5">修改赠送课时</span>
                                <span class="label-warning label" th:case="6">修改生效时间</span>
                                <span class="label-warning label" th:case="7">修改到期时间</span>
                                <span class="label-warning label" th:case="8">修改购买时间</span>
                                <span class="label-warning label" th:case="9">修改教材</span>
                                <span class="label-default label" th:case="10">终止订单</span>
                                <span class="label-info label" th:case="11">返还课时</span>
                                <span class="label-info label" th:case="12">挖券减半</span>
                                <span class="label-warning label" th:case="13">拆分或赠送订单</span>
                                <span class="label-success label" th:case="14">添加拆分或赠送订单</span>
                            </td>
                            <td th:text="${item.desc}">描述</td>
                            <td th:text="${item.orderId}">订单号</td>
                        </tr>
                        </tbody>
                    </table>
                    <div th:include="include/pageinfo::pager"></div>
                </div>
            </div>
        </div>
        <!--/box-->
    </div>
    <!--/row-->
</div>
<!-- content ends -->

<div th:include="include/onload_js::onloadJSCustomList(~{::script})">
    <script type="text/javascript">
        $(function () {
            $('.footable').footable();

            // $('[data-toggle="tooltip"]').tooltip({
            //     container: 'body'
            // });
        });
    </script>
</div>
</body>
</html>